package face.pay.api.wechat.api;

import face.pay.api.payter.WeChatPayTerminal;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 支付宝js支付
 */
@RestController
@RequestMapping("/wxJsPay/api/")
public class ApiWxJsPay {
    @Autowired
    WeChatPayTerminal weChatPayTerminal;

    @RequestMapping("/payorder")
    @ResponseBody
    public ResultMessage jsPay(@RequestBody String dataJson){

        return weChatPayTerminal.jsPay(dataJson);
    }

}
